home *** CD-ROM | disk | FTP | other *** search
- #include "controll.h"
-
- int main ()
- {
- //Use with ST1STATE.OMT and ST1HEAD1.SCT, ST1FUNC1.SCT, ST1HEAD2.SCT, and ST1FUNC2.SCT
- //Controller controller1;
- //controller1.process (turnOn);
- //controller1.process (turnOff);
- //return 0;
-
- //Use with ST1STATE.OMT and ST1HEAD3.SCT and ST1FUNC3.SCT, ST1HEAD5.SCT, ST1FUNC5.SCT
- Controller controller1;
- controller1.turnOn (1);
- controller1.turnOff ();
- return 0;
-
- //Use with ST1STATE.OMT and ST1HEAD4.SCT and ST1FUNC4.SCT
- //pOffState = new OffState();
- //pOnState = new OnState();
- //State *pCurrentState;
- //pCurrentState = pOffState;
- //pCurrentState = pCurrentState->turnOn(1);
- //pCurrentState = pCurrentState->turnOff();
- //return 0;
-
- //Use with ST1STATE.OMT and ST1C1.SCT and ST1C2.SCT
- //process (turnOn);
- //process (turnOff);
- //return 0;
- }
-